//
//  WCServiceTimeCell.m
//  WC
//
//  Created by 杨鑫 on 15/5/18.
//  Copyright (c) 2015年 智康. All rights reserved.
//

#import "WCServiceTimeCell.h"

#import "Macros.h"

@implementation WCServiceTimeCell

- (void)awakeFromNib {
    // Initialization code
    self.timeLabel.layer.cornerRadius = 16;
    self.timeLabel.layer.borderWidth = kOnePX;
    self.timeLabel.layer.borderColor = [UIColor clearColor].CGColor;
}

- (void)setSelected:(BOOL)selected
{
    [super setSelected:selected];
    
    if (selected) {
        self.timeLabel.layer.borderColor = HexRGB(0xea1311).CGColor;
    } else {
        self.timeLabel.layer.borderColor = [UIColor clearColor].CGColor;
    }
}
- (void)configWithMode:(WCDateMdoel *)dateModel
{
    self.timeLabel.text =dateModel.timePeriod;
 
}
@end
